import 'package:flutter/material.dart';

import 'discover_cell.dart';

class MePage extends StatefulWidget {
  const MePage({super.key});

  @override
  State<MePage> createState() => _MePageState();
}

class _MePageState extends State<MePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Container(
      color: Color.fromRGBO(237, 237, 237, 1.0),
      child: MediaQuery.removePadding(
          removeTop: true,
          context: context,
          child: ListView(
            children: [
              Container(
                height: 200,
                color: Colors.white,
                child: Container(
                  margin: EdgeInsets.only(
                    top: 50,
                    left: 20,
                    bottom: 10,
                  ),
                  child: Row(
                    children: [
                      Container(
                        child: ClipRRect(
                          borderRadius: BorderRadius.circular(5),
                          child: Image(
                            image: AssetImage('images/touxiang.png'),
                            width: 70,
                            height: 70,
                          ),
                        ),
                      ),
                      Expanded(
                        child: Container(
                          padding: EdgeInsets.only(left: 10, top: 8, right: 10),
                          child: Column(
                            crossAxisAlignment: CrossAxisAlignment.start,
                            children: [
                              SizedBox(
                                height: 24,
                              ),
                              Text(
                                '张三',
                                textAlign: TextAlign.left,
                                style: TextStyle(
                                  fontSize: 20,
                                  fontWeight: FontWeight.w900,
                                ),
                              ),
                              SizedBox(
                                height: 20,
                              ),
                              Row(
                                mainAxisAlignment:
                                    MainAxisAlignment.spaceBetween,
                                children: [
                                  Container(
                                    child: Text(
                                      '微信号：122334344324',
                                      style: TextStyle(
                                        fontSize: 14,
                                      ),
                                    ),
                                  ),
                                  Container(
                                    child: Row(
                                      children: [
                                        Image(
                                          image: AssetImage('images/CQ.png'),
                                          height: 20,
                                          width: 20,
                                        ),
                                        SizedBox(
                                          width: 10,
                                        ),
                                        Image(
                                          image:
                                              AssetImage('images/jiantou.png'),
                                          height: 20,
                                          width: 20,
                                        ),
                                      ],
                                    ),
                                  ),
                                ],
                              ),
                              SizedBox(
                                height: 20,
                              ),
                              Container(
                                height: 18,
                                width: 54,
                                decoration: BoxDecoration(
                                  borderRadius: BorderRadius.circular(10),
                                  border: Border.all(
                                    width: 1,
                                    color: Color.fromRGBO(220, 220, 220, 1),
                                  ),
                                ),
                                child: Row(
                                  children: [
                                    SizedBox(
                                      width: 3,
                                    ),
                                    Icon(
                                      Icons.add,
                                      size: 16,
                                    ),
                                    SizedBox(
                                      width: 3,
                                    ),
                                    Text(
                                      '状态',
                                      style: TextStyle(fontSize: 12),
                                    )
                                  ],
                                ),
                              )
                            ],
                          ),
                        ),
                      )
                    ],
                  ),
                ),
              ),
              SizedBox(
                height: 10,
              ),
              discoverCell(
                title: '服务',
                imageName: 'images/wechetzf.png',
                subTitle: '',
                subImageName: '',
                zsImageName: '',
              ),
              SizedBox(
                height: 10,
              ),
              discoverCell(
                title: '收藏',
                imageName: 'images/love.png',
                subTitle: '',
                subImageName: '',
                zsImageName: '',
              ),
              Row(
                children: [
                  Container(
                    width: 45,
                    height: .8,
                    color: Colors.white,
                  ),
                  Container(
                    height: .8,
                  )
                ],
              ),
              discoverCell(
                title: '朋友圈',
                imageName: 'images/xc.png',
                subTitle: '',
                subImageName: '',
                zsImageName: '',
              ),
              Row(
                children: [
                  Container(
                    width: 45,
                    height: .8,
                    color: Colors.white,
                  ),
                  Container(
                    height: .8,
                  )
                ],
              ),
              discoverCell(
                title: '卡包',
                imageName: 'images/kb.png',
                subTitle: '',
                subImageName: '',
                zsImageName: '',
              ),
              Row(
                children: [
                  Container(
                    width: 45,
                    height: .8,
                    color: Colors.white,
                  ),
                  Container(
                    height: .8,
                  )
                ],
              ),
              discoverCell(
                title: '表情',
                imageName: 'images/biaoqing.png',
                subTitle: '',
                subImageName: '',
                zsImageName: '',
              ),
              SizedBox(
                height: 10,
              ),
              discoverCell(
                title: '设置',
                imageName: 'images/shezhi.png',
                subTitle: '',
                subImageName: '',
                zsImageName: '',
              ),
            ],
          )),
    ));
  }
}
